package Factory.factory;

import Factory.interfaces.Cheese;
import Factory.interfaces.Dough;
import Factory.interfaces.Sauce;
import Factory.product.MarinaraSauce;
import Factory.product.ReggianoCheese;
import Factory.product.ThinCrustDough;

/**
 * 这是一个抽象工厂（核心是通过组合实现的一整套家族产品）
 * @Author: pengzx
 * @Description:
 * @Date: 17:20 2017/9/8
 * @Modified by: 1.0
 */
public class NYPizzaIngredientFactory implements PizzaIngredientFactory {
    @Override
    public Dough createDough()
    {
        return new ThinCrustDough();
    }

    @Override
    public Sauce createSauce()
    {
        return new MarinaraSauce();
    }

    @Override
    public Cheese createCheese()
    {
        return new ReggianoCheese();
    }
}
